package cn.wolfcode.feign;

import cn.wolfcode.common.web.Result;
import cn.wolfcode.domain.OperateIntergralVo;
import cn.wolfcode.feign.facback.IntergralFeignFacback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "intergral-service",fallback = IntergralFeignFacback.class)
public interface IntergralFeignApi {
    @RequestMapping("/intergral/decrIntegral")
    Result<String> decrIntegral(@RequestBody OperateIntergralVo operateIntergralVo);
    @RequestMapping("/intergral/incrIntergral")
    Result<String> incrIntergral(@RequestBody OperateIntergralVo operateIntergralVo);

}
